/**
 * 
 * 上下文对象单例对象
 *
 */
class Context extends egret.EventDispatcher {

    private static instance: Context = null;

    public stage: egret.Stage;

    public root: eui.UILayer;

    public constructor() {
        super();
    }

    public static getInstance(): Context {
        if(this.instance == null) {
            this.instance = new Context();
        }
        return this.instance;
    }


}
